package com.bootemp.service;

import com.bootemp.bean.SalGrade;
import com.bootemp.mapper.SalGradeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SalgradeService implements SalGradeMapper {
    @Resource
    public SalGradeMapper sm;
    @Override
    public int insert(SalGrade d) {
        return sm.insert(d);
    }

    @Override
    public List<SalGrade> all() {
        return sm.all();
    }

    @Override
    public int delete(int id) {
        return sm.delete(id);
    }

    @Override
    public SalGrade one(int id) {
        return sm.one(id);
    }

    @Override
    public int update(SalGrade d) {
        return sm.update(d);
    }
}
